//
//  ViewController.m
//  AlbumFetch
//
//  Created by 黄志明 on 2017/2/6.
//  Copyright © 2017年 黄志明. All rights reserved.
//

#import "ViewController.h"
#import "ACAssetModel.h"
#import "ACMRCClass.h"

@interface ViewController ()

@property (nonatomic, strong) ACMRCClass *marcClass;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    UIImageView *imageVIew = [[UIImageView alloc] initWithFrame:CGRectMake(10, 50, 50, 50)];
    [self.view addSubview:imageVIew];
    
    UIImage *image = [UIImage imageNamed:@"AssetPicker.bundle/btn_pic_pressed"];
    imageVIew.image = image;
    
//    NSMutableArray *array = [NSMutableArray array];
//    
//    for (int i = 0 ; i < 100; ++i)
//    {
//        ACAlbumModel *album = [ACAlbumModel new];
//        album.count = i + 1;
//        
//        [array addObject:album];
//    }
//    
//    NSPredicate *pre = [NSPredicate predicateWithFormat:@"count=%@ || count = %@" argumentArray:@[@1, @4]];
//    NSArray *array1 = [array filteredArrayUsingPredicate:pre];
//    NSLog(@"%@", array1);
//    
    _marcClass = [[ACMRCClass alloc] init];
}

- (IBAction)pringSubThreadInfo:(id)sender {
    [_marcClass createSubThread];
}

- (IBAction)printMainThreadInfo:(id)sender {
    
    [_marcClass mainThreadPoolInfo];
}

- (IBAction)printCreateSubPoolInfo:(id)sender {
    [_marcClass printSubThreadPoolInfo];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
